<form class="form-horizontal clearfix" role="form" name="userGroupEditForm"
	action="${(cardone.webContextUrl)!}/authority/userGroup/save.json">
	<input type="hidden" name="treeTypeCode" value="table_info">
	<input type="hidden" name="treeCode" value="UserGroup">
	<input type="hidden" name="id" value="${userGroup.id!}">
	<div class="form-group">
		<label class="col-sm-1 control-label">类别：</label>
		<div class="col-sm-3">
			<select name="typeId" class="form-control"> <#assign userGroupTypeList =
				cardone.DictionaryUtils.findListByTypeCode("user_group_type")> <#if userGroupTypeList??> <#list userGroupTypeList
				as userGroupType>
				<#if userGroupType.id == userGroup.typeId>
					<option value="${userGroupType.id!}"  selected="selected">${userGroupType.name!}</option> 
					<#else>
					<option value="${userGroupType.id!}">${userGroupType.name!}</option> 
					</#if>
				
				</#list> </#if>
			</select>
		</div>
		<label class="col-sm-1 control-label">父级：</label>
		<div class="col-sm-3">
			<input type="text" name="parentCode"
				value="${userGroup.parentName!}<#if userGroup.parentCode??>(${userGroup.parentCode!})</#if>"
				class="form-control" placeholder="智能补全，支持按空格键" maxlength="128"><input type="hidden" name="parentId"
				value="${userGroup.parentId!}">
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">代码：</label>
		<div class="col-sm-3">
			<input type="text" name="code" value="${userGroup.code!}" class="form-control" placeholder="请输入代码" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">名称：</label>
		<div class="col-sm-3">
			<input type="text" name="name" value="${userGroup.name!}" class="form-control" placeholder="请输入名称" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">排序:</label>
		<div class="col-sm-3">
			<input type="number" name="orderNum" value="${userGroup.orderNum!}" class="form-control" placeholder="请输入排序">
		</div>
	</div>
	<div class="pull-right">
		<button class="btn btn-primary c1-save" type="button">保存</button>
		<button class="btn" type="reset">重置</button>
		<button class="btn c1-back" type="button">返回</button>
	</div>
</form>
